<template>
    <!-- 出征详情 -->
    <div class="proofSignDetail">
        <div class="padding15All" style="height:50px;box-sizing:border-box;">
            <el-button icon="el-icon-arrow-left" size="mini" @click="back">返回</el-button>
            出征详情
        </div>
        <div style="height:20px;background-color: #F5F6F7;"></div>
        <div class="desc">
            <el-descriptions :colon="false" title="">
                <el-descriptions-item :contentStyle="{'padding':'20px','border': '1px solid #eee'}">
                    <el-descriptions title="" :column="2">
                        <el-descriptions-item label="出征编号">{{detail.applyOrderNum}}</el-descriptions-item>
                        <el-descriptions-item label="出征时间">{{detail.applyTime}}</el-descriptions-item>
                        <el-descriptions-item label="出征类型">{{detail.applyType}}</el-descriptions-item>
                        <el-descriptions-item label="版本类型">电子版</el-descriptions-item>
                        <el-descriptions-item label="出征份数">{{detail.applyNum}}</el-descriptions-item>
                        <el-descriptions-item label="出征状态">{{detail.applyName}}</el-descriptions-item>
                        <el-descriptions-item label="证据名称">{{detail.contractName}}</el-descriptions-item>
                        <el-descriptions-item label="操作">
                            <el-link target="_blank" :href="detail.downloadUrl" type="primary" :underline="false">下载</el-link>
                        </el-descriptions-item>
                    </el-descriptions>
                </el-descriptions-item>
            </el-descriptions>
        </div>
    </div>
</template>

<script>
import { applyDetail } from '@/api/proof'
export default {
    data(){
        return{
            detail:{}

        }
    },
    mounted(){
        this.getApplyDetail()
    },
    methods:{
        getApplyDetail(){
            applyDetail({
                contractEvidenceId:this.$route.query.contractEvidenceId
            }).then(res => {
                this.detail=res.result
            }).catch(err => {
                console.log("请求失败", err)
            })
        },
        back(){
            this.$router.push({name:'proofGo'},()=>{})
        },
    }
}
</script>

<style lang="scss" scoped>
.proofSignDetail{
    .desc{
        padding-top: 20px;
    }
}
</style>